import request from "@/utils/request";

// 获取道路信息列表
export function getRoadList(query) {
  return request({
    url: "/qbq/roadMessage/list",
    method: "get",
    params: query,
  });
}

// 新增道路信息列表
export function addRoadList(data) {
  return request({
    url: "/qbq/roadMessage",
    method: "post",
    data: data,
  });
}

//获取桥涵信息列表
export function getBridgeList(data) {
  return request({
    url: "/qbq/bridgeAndCulvert/list",
    method: "get",
    params: data,
  });
}

//新增桥涵信息列表
export function addBridgeList(data) {
  return request({
    url: "/qbq/bridgeAndCulvert",
    method: "post",
    data: data,
  });
}

//删除桥涵信息列表
export function deletaBridgeList(data) {
  return request({
    url: "/qbq/bridgeAndCulvert/" + data,
    method: "delete",
  });
}

//获取管廊信息列表
export function getPipegalleryList(data) {
  return request({
    url: "/qbq/pipeGallery/list",
    method: "get",
    params: data,
  });
}

//新增管廊信息列表
export function addPipegalleryList(data) {
  return request({
    url: "/qbq/pipeGallery",
    method: "post",
    data: data,
  });
}

//删除管廊信息列表
export function deletaPipegalleryList(data) {
  return request({
    url: "/qbq/pipeGallery/" + data,
    method: "delete",
  });
}

//获取专业工程信息列表
export function getProfessionalList(data) {
  return request({
    url: "/qbq/specialtyEngineering/list",
    method: "get",
    params: data,
  });
}

//新增专业工程信息列表
export function addProfessionalList(data) {
  return request({
    url: "/qbq/specialtyEngineering",
    method: "post",
    data: data,
  });
}

//删除专业工程信息列表
export function deletaProfessionalList(data) {
  return request({
    url: "/qbq/specialtyEngineering/" + data,
    method: "delete",
  });
}

//获取投资信息列表
export function getInvestmentList(data) {
  return request({
    url: "/qbq/investmentMessage/list",
    method: "get",
    params: data,
  });
}

//新增投资信息列表
export function addInvestmentList(data) {
  return request({
    url: "/qbq/investmentMessage",
    method: "post",
    data: data,
  });
}

//获取资金信息列表
export function getFinancialList(data) {
  return request({
    url: "/qbq/fundingMessage/list",
    method: "get",
    params: data,
  });
}

//添加资金信息列表
export function addFinancialList(data) {
  return request({
    url: "/qbq/fundingMessage",
    method: "post",
    data: data,
  });
}

//获取企业信息列表
export function getInformationList(data) {
  return request({
    url: "/qbq/enterpriseMessage/list",
    method: "get",
    params: data,
  });
}

//新增企业信息列表
export function addInformationList(data) {
  return request({
    url: "/qbq/enterpriseMessage",
    method: "post",
    data: data,
  });
}

//获取协同大厅流程列表
export function getCollaborativeHallList(data) {
  return request({
    url: "/qbq/synergyFlow/list",
    method: "get",
    params: data,
  });
}

//获取协同任务列表
export function getCollaborativeTaskList(data) {
  return request({
    url: "/qbq/synergyTask/list",
    method: "get",
    params: data,
  });
}

//修改多个协同任务列表
export function setCollaborativeTaskList(data) {
  return request({
    url: "/qbq/synergyTask/updateList",
    method: "post",
    data: data,
  });
}
